package com.rran.study.designpattern.behavioral.command.invoke;

import com.rran.study.designpattern.behavioral.command.command.Command;

/**
 * 服务员
 */
public class Waiter implements Invoker {
    private final Command command;

    public Waiter(Command command) {
        this.command = command;
    }

    @Override
    public void action() {
        command.execute();
    }
}
